
body .admin-container {
  display: flex;
  min-height: 100vh;
}
body .admin-sidebar {
  width: 250px;
  background: #001529;
  color: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}
body .logo-container {
  text-align: center;
}
body .logo {
  width: 120px;
  height: auto;
}
body .admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
body .admin-menu li {
  padding: 0;
}
body .admin-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}
body .admin-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
body .admin-menu li.active a {
  background: #1890ff;
}
body .admin-menu li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
body .badge {
  background: #ff4d4f;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: auto;
}
body .admin-main .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  margin-bottom: 20px;
}
body .breadcrumb {
  display: flex;
  align-items: center;
}
body .breadcrumb i {
  margin: 0 10px;
  color: #999;
}
body .admin-search {
  position: relative;
}
body .admin-search input {
  padding: 8px 30px 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}
body .admin-search i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
body .admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 24px;
}
body .admin-header {
  padding: 20px;
}
body .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}
body .breadcrumb span {
  color: #666;
  font-size: 14px;
}
body .breadcrumb i {
  color: #999;
  font-size: 12px;
}
body .admin-search {
  position: relative;
  width: 320px;
}
body .admin-search input {
  width: 70%;
  padding: 10px 4px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}
body .Search {
  width: 25%;
  padding: 10px 4px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
}
body .admin-search input:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}
body .admin-search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
}
body .user-content {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  padding: 20px;
}
body .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body .btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
body .btn-primary {
  background: #1890ff;
  color: #fff;
  height: 40px;
  width: 100px;
}
body .btn-primary:hover {
  background: #40a9ff;
}
body .user-table {
  width: 100%;
  border-collapse: collapse;
}
body .user-table th,
body .user-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
body .user-table th {
  background: #fafafa;
  font-weight: 500;
  color: #666;
}
body .user-table tr:hover {
  background: #fafafa;
}
body .status-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}
body .status-active {
  background-color: #d4edda;
  color: #155724;
}
body .status-inactive {
  background-color: #f8d7da;
  color: #721c24;
}
body .btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 5px;
}
body .btn:nth-child(1) {
  background-color: #007bff;
  color: white;
}
body .btn:nth-child(1):hover {
  background-color: #0056b3;
}
body .btn:nth-child(2) {
  background-color: #dc3545;
  color: white;
}
body .btn:nth-child(2):hover {
  background-color: #c82333;
}
body .pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  gap: 8px;
}
body .page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
body .page-btn.active {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}
body .page-btn:hover:not(.active) {
  border-color: #1890ff;
  color: #1890ff;
}
body .page-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
body .fas {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
body .modal {
  display: none;
  /* 默认隐藏 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  /* 半透明背景 */
}
body .modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
body .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
body .close:hover,
body .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
body form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
body form input[type="text"],
body form input[type="email"],
body form input[type="tel"],
body form input[type="datetime-local"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
body form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
body form button[type="submit"] {
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}
body form button[type="submit"]:hover {
  background-color: #0056b3;
}
/* 用户管理特定样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: bold;
}

.logout {
    color: #ff4d4f;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}

/* 用户表格特定样式 */
#user-content .btn-reset-password {
    background-color: #faad14;
    color: white;
}

#user-content .btn-reset-password:hover {
    background-color: #ffc53d;
}
